Port hamiltonian modeling of MSMA based actuator: toward a thermodynamically consistent formulation.