A two-dimensional model of mesoscale frontogenesis in the ocean