On the ground state of the hydrogen molecule–ion H+2 enclosed in hard and soft spherical boxes