An energy approach to the design of single degree of freedom gravity balancers with compliant joints