Text this: Design of two-dimensional perovskite solar cells with superior efficiency and stability