A series of flexible bis(pyridyl)bis(tetrazole)-modulated coordination polymers: construction, electrochemical properties, dye adsorption and magnetic properties