Buoyancy-driven bubbles in a constricted vertical capillary