Text this: Optimal dispatch of distributed renewable energy and energy storage systems via optimal configuration of mobile edge computing