Stability and instability conditions using polyhedral Lyapunov functions