Quantum confined bandgap narrowing mechanism