Review of Computational Mechanics, Optimization, and Machine Learning Tools for Digital Twins Applied to Infrastructures