Advancing neutron diffraction for accurate structural measurement of light elements at megabar pressures