Phase detection of coherence singularities and determination of the topological charge of a partially coherent vortex beam