Comparative study of semicarbazone and thiosemicarbazone ligands alongwith their metal complexes and their anticancer and antitubercular activities