Efficiency and environmental analysis of a system for renewable electricity generation and electrochemical storage of residential buildings