Synthesis of Novel Triazine-Based Chalcones and 8,9-dihydro-7H-pyrimido[4,5-b][1,4]diazepines as Potential Leads in the Search of Anticancer, Antibacterial and Antifungal Agents