Design and fabrication of automatic scanning (bent crystal) spectrometer for the study of K absorption