Absorption of light by inhomogeneously broadened excitons in quantum wells