States of a hydrogen atom in an impenetrable cubic cavity