One-dimensional diffractive optical element based fabrication and spectral characterization of three-dimensional photonic crystal templates.