A model for photoconductivity in amorphous chalcogenide alloys