Soluble Phenyl- or Alkoxyphenyl-Substituted Rigid-Rod Polyamides and Polyimides Containing m-Terphenyls in the Main Chain