Ion beam modification of structural and electrical properties of TiN thin films