Modulated mixing and frontogenesis in shallow seas and estuaries