Design, synthesis and in vitro evaluation of antimycobacterial and antifungal activities of new heterocyclic derivatives