On the electronic structure of interstitial transition-metal based alloys with boron and carbon impurities