Pressure dependence of the electron density in solid iodine by the maximum-entropy method