Synthesis, characterization, and antibacterial and anticancer screening of {M2+–Co3+–M2+} and {Co3+–M2+} (M is Zn, Cd, Hg) heterometallic complexes