Generalized numerical model for the simulation of electrophoretic methods in microfluidic chips