Dynamic distribution system reconfiguration considering distributed renewable energy sources and energy storage systems