Optical Properties and Modeling of 2D Perovskite Solar Cells