An Integrated Machine Learning and Finite Element Analysis Framework, Applied to Composite Substructures including Damage