Electrical properties and microscopic structure of amorphous chalcogenides