Global regularity of the 2D magnetohydrodynamic equations with fractional anisotropic dissipation