Temperature dependence of defect mode in a defective photonic crystal