Design of the Counterbalances Minimizing the Dissipated Energy of a Vertically Articulated Manipulator