Inhomogeneous and homogeneous broadening of excitonic spectra due to disorder