Thermal evolution of the Er/Si(111) interface: bulk and surface electronic states