On the dimensionality of optical absorption, gain, and recombination in quantum-confined structures