Metal detection and separation