Distortions of the cosmic microwave background spectrum by dust