Fabrication of heteropolyoxometalate-based photochromic inorganic–organic nanocomposites