Imaging of hydrodynamic and electrokinetic flow profiles in capillaries