Piecewise quadratic Lyapunov functions for linear control systems with first order reset elements