Dependent versus Independent Variable Formulation for the Dynamics and Control of Cranes