Photoelectron spectra and transport properties of intercalates of Nb and Ta dichalcogenides with Sn and Pb