Electronic Structure of Carotenoids in Natural and Artificial Photosynthesis