Neither of those articles seem to support the idea that you can do molecular analysis with x-rays. They are all about elemental analysis, which is not useful for the purpose of detecting explosives.
Not sure if they use dual-energy x-ray as in [0], but you don't need to if you take x-ray shot from different angles. Modern 3D reconstruction algorithms you can detect shape and volume of an object and estimate the material density through its absorption rate. A 100ml liquid explosive in a container will be distinguishable from water (or pepsi) by material density, which can be estimate from volume and absorption rate.
[1] https://en.wikipedia.org/wiki/Spectral_imaging_(radiography)
[2] https://pmc.ncbi.nlm.nih.gov/articles/PMC2719491/