Global regularity of 2D generalized incompressible magnetohydrodynamic equations