On the formation of potential-vorticity anomalies in upper-level jet-front systems