Modified droop control for the optimal management of the battery systems in isolated microgrids