Thermal effects of ridge subduction