metal detector principle in pharma