Design of dyes for energy transformation: From the interaction with biological systems to application in solar cells