Method of spectral background evaluation using higher energy peaks in X-ray Energy analysis