Vortex type equations and canonical metrics