Role of reaction parameters in the direct synthesis of aromatic polyamides