Simulation-in-the-loop additive manufacturing for real-time structural validation and digital twin development