Piecewise-linear Lyapunov functions for structural stability of biochemical networks