Effect of pyridyl substituents leading to the formation of green luminescent mercury(II) coordination polymers, zinc(II) dimers and a monomer