Cobalt precipitation by reduction with sodium borohydride