Image-potential states as a sensor for magnetism