Edge domain dependent pinning effect by the stray field in the patterned magnetic tunnel junction