First-principles study of high-pressure structural stability and mechanical properties of Ni2B