The planarization of side chain in carbazole sensitizer and its effect on optical, electrochemical, and interfacial charge transfer properties