Using X-rays to investigate cloud chemistry