A study of the reaction π+d→pp for pion energies between 142 and 262 MeV