Quantum confinement effects for light emis- sion in perovskites