Resonant photoemission spectroscopy study of impurity-induced melting in Cr- and Ru-doped Nd(1/2)A(1/2)MnO(3) (A=Ca,Sr)