Effects of inhomogeneity on the Shukla–Nambu–Salimullah potential in a magnetized plasma