Thermooptically perturbed resonators