Moduli spaces of curves with A_k-singularities