Nonlocal exchange- and kinetic-energy density functionals for electronic systems: Application to atoms and ions.