Coating made of cobalt oxide or hydroxides