Dynamic Distribution System Reconfiguration Considering Distributed Renewable Energy Sources and Energy Storage Systems