Tuning edge state localization in graphene nanoribbons by in-plane bending