Variational approximations to the 2pσ u and 2pπ u wavefunctions of the hydrogen molecule ion