dd excitations in CPO-27-Ni metal-organic framework: comparison between resonant inelastic X-ray scattering and UV-vis spectroscopy.