Microscopic Modeling of Photoluminescence in Disordered Semiconductors