Improved Understanding, Development and Optimisation of Perovskite-based Solar Cells