Nonlinear optical properties of gold nanoparticles dispersed in different optically transparent matrices