Solution of electrochemical flux equations with variable diffusion coefficient and transference number