The origin of the far-infrared continuum of z ∼ 6 quasars: A radiative transfer model for SDSS J1148+5251