Chemical fractionation in the solar nebula