Greener approach for one pot synthesis of quinoline derivatives and some nitrogen containing reaction intermediates