Synthesis of heterocycles through classical Ugi and Passerini reactions followed by secondary transformations involving One or Two additional functional groups