Synthesis, spectroscopic and electrochemical characterization of Co(II)-terpyridine based metallopolymer