Electronic structures of iron and cobalt pyrites.