Simulation of energy spectrum of GEM detector from an x-ray quantum. (18th January 2018)