Mixture models for rating data: the method of moments via Groebner bases