Environment-friendly synthesis of long chain semiaromatic polyamides