Thermally tuned ring resonator