Thermally tunable microring resonator for self-collimated beams in photonic crystals