Thermally crosslinkable materials and multi-layered devices therefrom