Comparison of photo- and deuteron-induced effects in amorphous chalcogenide layers