Kohn-Sham kinetic energy density in the nuclear and asymptotic regions: Deviations from the von Weizsäcker behavior and applications to density functionals