Amido-thioether polymers containing pendant carboxylato groups: thermodynamics of protonation and copper(II) complex formation in dilute aqueous solution