Measurement of the mass and width of the W boson in e+e- collisions at sqrt(s) = 161 - 209 GeV