Coating made of chromium carbide