Thermal analysis of line-defect photonic crystal lasers.