Inverse electro-thermal analysis of the material removal mechanism in electrical discharge machining