Semiconductivity in pyrite, marcasite and arsenopyrite phases