Predicting and Controlling the Thermal Part History in Powder Bed Fusion Using Neural Networks