Skyrmion Hall effect with spatially modulated Dzyaloshinskii–Moriya interaction