Abelian Vortices on Nodal and Cuspidal Curves