The effect of magnesium ions on triphosphate hydrolysis