Hurricane Sandy puts power grids to the test