Divalent metal ion catalyzed reactions of acyl phosphates