Effect of metallic surfaces on the electronic structure, magnetism, and transport properties of Co-phthalocyanine molecules