Heavy ion track potentials in solids probed by electron yield measurements