Determination of the I₂ bond-length distributionin liquid solid and solution by extended x-ray absorption fine structure spectroscopy