The influence of second-nearest neighbor interactions on the thermodynamic properties of B2 phases with substitutional defects