Spin-polarized and valley helical edge modes in graphene nanoribbons