Template-engaged synthesis of RuSe2 and Pd17Se15 nanotubes by reacting precursor salts with selenium nanowires