Convenient synthesis of N-substituted β-lactam-4-carboxylates