Spatial inhomogeneity of the interaction between bistable ferromagnetic wires