Potential applications of two ultrathin Pd nanowires to the hydrogen economy