Embedded-atom potential for hcp and fcc cobalt