Measurement of W-boson polarization in top-quark decay using the full CDF Run II data set