Chemical tuning of hybrid perovskites for solar-driven clean energy technologies