Synthesis of multifunctional photonic crystals