A spatially smoothed device model for meso-structured perovskite solar cells