Free-standing Pt and Pd nanowires: strain-modulated stability and magnetic and thermoelectric properties.