Acid-base-induced association of amino-terminated polystyrenes. 1. Linear chains and ring formation