Work function of titanium films