Thermal stability of graded exchange spring media under the influence of external fields