Gas dynamic heating of chondrule precursor grains in the solar nebula