A Bubble Model for the Gating of K$_\mathrm{v}$ Channels