Introducing nitrogen atoms or nitrogen-containing groups