Realization of energy-saving glass using photonic crystals