Simulated and experimental spectroscopic performance of GaAs X-ray pixel detectors