Effects of barrier height inhomogeneities on the determination of the Richardson constant