Metal detectors and X-ray inspection systems for the pharmaceutical industry