Text this: Optimal energy-aware resource allocation in sla constrained data centers in a smart grid environment