Defects, deformation mechanisms and phase stabilities in Nb-based B2 compounds