Exact hierarchical reductions of dynamical models via linear transformations