Controlling magnetic domain wall pinning using atomic force microscope tip-based nanomachining