Text this: Wireless Sensor Network Energy Model and Its Use in the Optimization of Routing Protocols