Information on ion–solid interactions obtained through magnetization measurements