Frequency-dependent nonlinear optical properties of CdSe clusters