Optimal system design for energy communities in multi-family buildings: the case of the German Tenant Electricity Law. (1st January 2022)