Ion implantation processing of sub-stoichiometric titanium nitrides and carbonitrides: chemical structural and micromechanical investigations