Hydrogen molecular ion in a high magnetic field