Surface state and catalytic activity and selectivity of nickel catalysts in hydrogenation reactions V. Electronic effects on methanation of CO and CO2