Efficient energy, cost reduction, and QoS based routing protocol for wireless sensor networks