First-principles calculations of magnetic edge states in zigzag CrI3 nanoribbons