Magnetic field effect on capillary rise of magnetic fluids