Emission of polarized light by slow ions after excitation near a magnetic surface