An XPS and WF study of the Er/Si(100) interface formation