Data-driven modeling and control of complex systems, particularly multiscale and multiphysics systems, using physics-constrained machine learning