Energy and enstrophy transfer in numerical simulations of two-dimensional turbulence