Thermal stability of rare earth magnet thick films