Calculation of local current densities and terminal voltage for a monopolar sandwich electrolyser: application to chlorate cells