Measurement of the W boson polarization in top quark decays with the ATLAS detector