Electronic factors determining the reactivity of metal surfaces