A generalized mathematical model of geostrophic adjustment and frontogenesis: uniform potential vorticity