X-Ray Absorption and RIXS on Coordination Complexes