Electronic and charge transfer properties of bio-inspired flavylium ions for applications in TiO2-based dye-sensitized solar cells