Switching the in-plane easy axis by ion implantation in rare earth based magnetic films