Maximum-likelihood analysis of multiple quantum phase measurements