Soft real-time data processing solutions in measurement systems on example of small-scale GEM based x-ray spectrometer