The Path to Energy Communities Based on Renewable Energy Sources