Sol-gel based fabrication methods for photonic crystals