Transmission of slow highly charged ions through glass capillaries: Role of the capillary shape