Investigation of laser-induced depth damage and scattering of light in crystals and glasses