State Space Model Predictive Control of a Multi Stage Electro-metallurgical Process