The investigation of the unseen interrelationship of grain size, ionic defects, device physics and performance of perovskite solar cells