Setup for in situ x-ray diffraction and ion-channeling studies of ion-implantation effects in thin films