The electronic band structures of iron, sulfur, and oxygen at high pressures and the Earth's core