In situ structural evolution of ion-irradiated R─Ba─Cu─O (R = Eu, Gd) superconductors