Preparation of a colloidal photonic crystal containing CuO nanoparticles with tunable structural colors