Grids are at last becoming smarter and more efficient