Text this: Energy-Model-Based Optimal Communication Systems Design for Wireless Sensor Networks