The power-oriented graphs for modeling mechanical systems with time-varying inertia