Indole-based hydrazide-hydrazones and 4-thiazolidinones: synthesis and evaluation as antitubercular and anticancer agents