Infrared emission from interstellar dust in the Andromeda Galaxy