A glass transition-based controller algorithm to manage rice intermittent drying