Studies on developing a facile route for the synthesis of highly substituted quinoline and indole derivatives