Encapsulation of polymer colloids in a sol–gel matrix. Direct-writing of coassembling organic–inorganic hybrid photonic crystals