Thermal Stresses near the Surface of a Glacier