Capillary Flow of Cholesteric and Smectic Liquid Crystals