Functional group induced structural diversities and photocatalytic, magnetic and luminescence sensing properties of four cobalt(ii) coordination polymers based on 1,3,5-tris(2-methylimidazol-1-yl)benzene