The beam-gas spectra of silicon, sulfur and oxygen