Light localization effect on the optical properties of opals doped with gold nanoparticles