Hofmann degradation and bromination of amides derived from phosphonoacetic acid