Analytic stratifications of the cut locus for a class of distance functions