Controlling the spectrum of a two-photon field: Inhomogeneous broadening due to a temperature gradient