Modelling and optimization of thermal processes in the dairy industry