Modeling and Control of Complex Physical Systems in the Port-Hamiltonian Framework