On the Lyapunov function for complex-balanced mass-action systems