The rate of migration of dna within an agarose gel in the gel electrophoresis technique is primarily based on what factor?.