A Green's function approach to the description of optical properties of disordered semiconductors