Smart control of energy storage system in residential photovoltaic systems for economic and technical efficiency | Synapse