Mechanism of the matrix synthesis of polymer-polymer salt complexes