The mineralogy and chemistry analyser (MARS-XRD) for the ExoMars 2018 mission