Frictional heating of the descending lithosphere