Microscopic structure in liquid hydrogen and deuterium: An X-ray scattering study