Syntheses and crystal structure of copper (II) and cobalt (II) complexes containing N-heterocyclic compounds