Magnetic properties of TmAl3 and TmGa3