Electrodeposited cobalt films: hcp versus fcc nanostructuring and magnetic properties