Separating mixtures of probability distributions with the grid method of moments and the grid maximal likelihood method