First-principles calculations of the twin boundary energies and adhesion energies of interfaces for cubic face-centered transition-metal nitrides and carbides