Electromagnetic global gyrokinetic simulation of shear Alfven wave dynamics in tokamak plasmas