From synthetic control to natural products: a focus on N-heterocycles