K X-ray spectra of amorphous and crystalline silicon