Batteries may rewire world’s power grids, spell trouble for utility firms