Thermomechanical balances of ice sheet flows