Models of the formation of the solar nebula