Thermally stable cross-linked polymers for electro-optic applications