The 1–1000 μm spectral energy distributions of far-infrared galaxies