State formulation of large-scale linear time-invariant bond graph models