The combinatorics of cation-deficient close-packed structures