Resonant photoemission and Ta 5p core reflectance spectra of 1T- and 2H-TaSe2