Scalable service discovery in ubiquitous and pervasive computing architectures: A percolation-driven approach