Electronic properties and the role of d states in stable quasicrystals