Nonparametric Methods for Cognitive Diagnosis