Electron spectroscopy and diffraction studies of metal contact reactions in amorphous chalcogenides