Sampling procedures for inspection by attributes