Confined H(1s) and H(2p) under different geometries