Encoder-Decoder Neural Networks in Interpretation of X-ray Spectra