An Optimized Distributed Cooperative Control to Improve the Charging Performance of Battery Energy Storage in a Multiphotovoltaic Islanded DC Microgrid