Online Two-stage Thermal History Prediction Method for Metal Additive Manufacturing of Thin Walls