Energy-sharing method of smart buildings with distributed photovoltaic systems in area | Synapse