A CONFIGURATION METHOD FOR ENERGY STORAGE SYSTEMS IN DISTRIBUTION