First-principles calculations on the electronic structure of TiCxN1−x, ZrxNb1−xC and HfCxN1−x alloys