EBC: A Topology Control Algorithm for Achieving High QoS in Sensor Networks