Infrared AKARI observations of magnetars 4U 0142+61 and 1E 2259+586