The first magnetic layer (3), at room temperature, has a magnetisation in a direction between the normal to the plane and a direction in the plane and a magnetisation in the direction of the normal at a temperature above a certain level. The second magnetic layer (4) has a magnetisation in the direction of the normal in the temperature range between that of the room and Curie temperatures.