Newton's method for optimal temperature-tracking of glass cooling processes