Abelian quotients of subgroups of the mapping class group of surfaces