An approach for analyzing the impacts of smart grid topologies on critical infrastructure resilience