Role of La 5p in Bulk and Quantum-Confined Solids Probed by the La 5p54f1 3D1 Excitonic Final State of Resonant Inelastic X-ray Scattering