The effect of changing the ratios of perovskite triple cations and anions on the optical properties and solar cell performance of perovskite thin films