Characterization of the starch synthase under terminal heat stress and its effect on grain quality of wheat