Techno-economic analysis of household and community energy storage for residential prosumers with smart appliances