The effect of carbon monoxide on the work function of evaporated films of titanium and erbium