Correlation effect in resonant photoemission spectra of UPd2Al3 and UC