Simultaneous phase behaviour, elemental composition and density measurement using X-ray imaging