Fluctuation–dissipation theorem for thermo-refractive noise