An electrochemically mediated ATRP synthesis of lignin-g-PDMAPS UCST-thermoresponsive polymer.