Influence of Film Thickness on the Electronic Band Structure and Optical Properties of P–I–N CH3NH3PbI3−xClx Perovskite Solar Cells