Variational calculations on the hydrogen molecular ion