Identifiability of nonparametric mixture models, clustering, and semi-supervised learning