The harmonic compactification of the moduli space of curves