Inhomogeneity in local magnetic field due to susceptibility contrast