Minimality and local state decompositions of a nonlinear state space realization using energy functions