Power grids require investing USD 3.1 trillion by 2030 to limit global warming