Coordination dependence of hyperfine interactions at impurities on fcc metal surfaces. I. Electric-field gradient