Photovoltaic energy systems with battery storage for residential areas: an economic analysis