Measurement of W± boson production in Pb+Pb collisions at sqrt(sNN) = 5.02 TeV with the ATLAS detector