Generative Cognitive Diagnosis