What is the magnetic field distribution for the equation of state of magnetized neutron stars