The theory of quasigeostrophic von Karman vortex streets in two-layer fluids