Autonomous suspended load operations via trajectory optimization and variational integrators