Synthesis, crystal structure and anticorrosion performance of Zn(II) and Ni(II) complexes