DEVELOPMENT OF COMPUTER CODE FOR CORRECTION OF X-RAY SPECTRA MEASURED WITH HIGH-PURITY GERMANIUM DETECTORS