Mg-Ni-O based OCM catalyst obtained by carbonate precursor method