Edge configurational effect on band gaps in graphene nanoribbons