Shear flow generation and energetics in electromagnetic turbulence