Density effect on molecular bond length in fluid I$_2$ by x-ray absorption spectroscopy