Generalizations of Superimposed Codes with Applications to Efficient Design of Pooling Experiments