Periodic operation of a catalyst as a means of overcoming a thermodynamic constraint. The case of methane homologation on metals