On the equisingular stratification of families of curves on surfaces