Thermal nonlinear refraction in dye solutions: a study of the transient regime