Mineral nutrition in photolithotrophs: cellular mechanisms controlling growth in terrestrial and aquatic habitats