Protective trivalent Cr-based electrochemical coatings for gun barrels