Synthesis of linear and crosslinked polymides based on diamines of the fluorene series