Band gap opening in zigzag graphene nanoribbon modulated with magnetic atoms