Hierarchical modelling of electrodialysis desalination process