Nanoscale layers of precise ion-containing polyamides with lithiated phenyl sulfonate in the polymer backbone