The effect of microstructure on the magnetic behavior of epitaxial cobalt layers