On the corrosion behavior of TiN-coated AISI D2 steel