Rotating gravity currents. Part 2: Potential vorticity theory