The important role of crystallinity and amylose ratio in thermal stability of starches