Germany to invest in gas-fired plants in coming decades