Closed-loop feedback control of smart wells for production optimisation using self-potential measurements