The photochemistry and function of carotenoids in photosynthesis