The construction of diverse nitrogen-containing heterocycles via the reaction of amines or azides with metallocarbenes