from carboxylic acids involving a Hofmann, Curtius, Schmidt, or Lossen-type rearrangement