Nonlinear optical characterisation of CdS and PbS quantum dots dispersed in a glass matrix