Magnetic correlations in the spin ice Ho2-xYxTi2O7 as revealed by neutron polarization analysis