Characterization of TiN films prepared by a conventional magnetron sputtering system: influence of nitrogen flow percentage and electrical properties