The symplectic vortex equations and invariants of Hamiltonian group actions