how is the structure of capillaries related to their functions