Chisini's conjecture for curves with singularities of type x^n=y^m