Restricted Open-Shell Configuration Interaction Singles Study on M- and L-edge X-ray Absorption Spectroscopy of Solid Chemical Systems