Electron spin resonance in GdxY1-xIr2