Calculation of gas heating in a dc sputter magnetron