Semiconducting properties of pyrite