Capillary rheometer for magnetic fluids