Effect of the multiple reflections of a light beam on the thermal wave field of a sample of finite thickness