Synthesis of poly(arylene sulfones) and poly(arylene ketones) by reactions involving substitution at aromatic nuclei