Titanium thin film deposition in a deuterium atmosphere