Planck 2013 results. IX. HFI spectral response