Chemical reactor stability by Liapunov's direct method