Benchmarking the MEKAL spectral code with solar X-ray spectra