Planck intermediate results. XXII. Frequency dependence of thermal emission fromGalactic dust in intensity and polarization