Unexpected formation of 4,5-dihydro-1H-pyrazolo[3,4-b]pyridine derivatives as a potent antitubercular agent and its evaluation by green chemistry metrics