Discretized Thermal Model of Hall-Héroult Cells for Monitoring and Control