A Novel Treatment of Moving Heat Sources with Applications to Additive Manufacturing and Welding