ATP synthesis and hydrolysis in submitochondrial particles subjected to an acid—base transition