Carbon dioxide reforming of methane under periodic operation