Structural, nanomechanical and electrochemical properties of TiC and TiN films prepared by pulsed DC magnetron sputtering technique