Acidification of three-dimensional emeraldine polymers: Search for minimum energy paths from base to salt