Phase stability and structural distortion of NiO under high pressure