Forward and inverse cascades in decaying two-dimensional electron magnetohydrodynamic turbulence