Catalysis for highly thermostable phenol-terephthalaldehyde polymer networks