Lifetimes of the first excited states in 118Sn and 120Sn by the nuclear gamma-ray resonance method