Measurement of the differential cross section and charge asymmetry for inclusive pp → W ± + X production