Molecular mechanisms of plant metal tolerance and homeostasis