Analysis of historical grating spectra: Jungfraujoch atmospheric database extended back to 1977