The physics of vortex cannons