Explicitly correlated variational estimates of the energy levels of negative hydrogen ion under spatial confinement