Structuring and Viability of Energy Communities