Families of n-gonal curves with maximal variation of moduli