Characterization of polymer brushes in capillaries