Synthesis and evaluation of naphthalimides and their hybrids with other heterocyclic moieties for anticancer and antibacterial activities