Text this: Energy-aware data compression and transmission range control for energy-harvesting wireless sensor networks