Electron spin resonance across the charge-ordering transition in YBaMn2O6