High order variational integrators in the optimal control of mechanical systems