On the application of integral method to the solution of melting and solidification problems in a fusion welding process