Anion- and pH-linked conformational transition in horseradish peroxidase