Numerical study of thermal aspects of electric discharge machining process