Synthesis of thin film photonic crystals