The nature of near-earth asteroids from the study of their thermal infrared emission