X-ray diffraction with micrometre spatial resolution for highly absorbing samples