Magnetic properties and structure of R2Co17−xTix intermetallic compounds (R=Pr or Nd)