Mg2+-regulation of C4 and CAM adenylate kinase