Text this: SLA-based content adaptation framework for optimizing QoE and energy consumption