Self-consistent weighted density approximation for simple metal surfaces