Origin of the rigidity in tetragonal MB (M = Cr, Mo and W) and softening of defective WB: First-principles investigations