Homopolymers or copolymers of aromatic monomers containing elements other than carbon and hydrogen