Thermal end effects on electroosmotic flow in a capillary