Tuning the thicknesses, density of states, electron affinities of layers in perovskite-based solar cells for green energy solutions | Synapse