Layered Ruddlesden–Popper Efficient Perovskite Solar Cells with Controlled Quantum and Dielectric Confinement Introduced via Doping