Rapid Solidification of Alloy Substrates by Lasers and Electron Beams: Heat Flow Modelling and Solidification Morphology