Dynamic control to improve the separation performance in capillary electrophoresis