Factors controlling association of magnesium ion and acyl phosphates