The Edge Stresses and Phase Transitions for Magnetic BN Zigzag Nanoribbons