Design and construction of an automatic scanning X_ray spectrometer and study of bond character in zinc compounds