Simulation of inverted pyramid perovskite solar cells