Theory of raman and brillouin scattering in disordered solids