magnesium-dependent ATPase activity of membranes