Tuning electronic and magnetic properties of zigzag graphene nanoribbons by large-scale bending