Nanometer-scale test of the Tung model of Schottky-barrier height inhomogeneity