W-boson polarization measurement in the tt¯ dilepton channel using the CDF II detector