Study of ion-implantation damage in GaAs:Be and InP:Be using Raman scattering