Measurement of the W boson properties in the forward region in pp collisions at √s = 5.02 TeV