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