A new series of layered transition metal oxalates: hydrothermal synthesis, structural and magnetic studies