Photophysical properties of an amphiphilic cationic hemicyanine dye in solution and adsorbed on a TiO2 mesoporous film