Electrochemical synthesis of polymer microgels