Synthesis, characterization and evaluation of cytotoxic and antimicrobial activities of some novel heterocyclic compounds