Measurement of the cross-section and charge asymmetry of W bosons produced in proton–proton collisions at sqrt(s) = 8 TeV with the ATLAS detector