Controlled diffusion of nanoparticles by viscosity gradient for photonic crystal with dual photonic band gaps