How smart metering and smart charging may help a local energy community in collective self-consumption in presence of electric vehicles