Thermal model of capillary electrophoresis and a method for counteracting thermal band broadening