Polyarylates containing phthalazinone moieties with excellent thermal resistance