Development of novel and efficient synthetic processes for nitrogen heterocycles and key drug intermediates