SelfEval: Leveraging the discriminative nature of generative models for evaluation