A hamiltonian global nodal position finite element method for dynamics analysis of submarine cables