Studies on some heterocyclic compounds with potential antibacterial antiturbercular and antileprotic activities