Evolution of the electronic structure of a Mott system across its phase diagram: an X-ray absorption spectroscopy study of (V1 xCrx)2O3