Mathematical functional for thermal distribution calculating during the electron-beam welding process