Variational and optimal control approaches for the second-order Herglotz problem on spheres - Machado, Luís (2018)