Cluster calculations of the electronic structure of transition metal surfaces