Structure and magnetic properties of electrodeposited cobalt