Mapping of multi-elements during melting and solidification using synchrotron X-rays and pixel-based spectroscopy