Cooperativity and proton transfer in hydrogen-bonded triads.