Mechanistic bases of metal tolerance: linking phenotype to genotype