Multipurpose control and planning method for battery energy storage systems in distribution network with photovoltaic plant. (March 2020)