Open- and closed-shell states in few-particle quantum mechanics. I. Definitions