Solution-phase parallel synthesis using ion-exchange resins