On the role of complexation with a solvent in the formation of supermolecular structures of polyamic acids