Measurement of the tt¯W and tt¯Z production cross sections in pp collisions at √s = 8 TeV with the ATLAS detector