Predicting phase equilibria in polydisperse systems