Structure and properties of polyaniline interacting with H-phosphonates