Metal detection systems for liquids and pastes