Relativistic effects in the impact-parameter dependence of K-shell ionization of heavy elements