Metals and metalloids in photosynthetic bacteria: interactions, resistance and putative homeostasis revealed by genome analysis.