Rederivation of Nernst's equation without any additional assumptions