Linear and nonlinear optical properties of CdSe microcrystallites in glasses