Photo- and electron-induced chemical modifications in AgAs(Ge)S(Se) glasses