Text this: Energy efficient in cluster head and relay node selection for wireless sensor networks