Modeling of a Hydraulic Energy Regeneration System: Part I—Analytical Treatment