First-principle calculations of mechanical properties and electronic structure of WCoB and Cr doped WCoB under high pressure