On the Learning of Energy-Based Models Using Noise Contrastive Estimation