On clustering procedures and nonparametric mixture estimation