Astrophysical Implication of the 139La(n,gamma) and 151Sm(n,gamma) Section Measured at n_TOF