Theoretical investigation of the electronic and magnetic properties of TM (TM=Ti, V, and Cr)-doped w-BN compound