Effects of symmetry on circular and linear magnetic dichroism in angle-resolved photoemission spectra of Gd/Y (0001) and Fe-Ni//Cu (001)