Utilisation of the X-ray emission of an electron beam capillary for visualisation of the beam-material interaction