Gravar-mail: Control and operation of a three-phase local energy router for prosumers in a smart community