Hopf magnetic curves in the anti-de Sitter space ℍ31