On the multifractal analysis of measures