Time dependence of thermo-optical effect for thin samples containing light-absorptive material