The determination of the internal magnetic field in magnetic grains