A discriminating metal detector