A metal-free tandem approach to prepare structurally diverse N-heterocycles: synthesis of 1,2,4-oxadiazoles and pyrimidinones