Piecewise Quadratic Functions for Finite-Time Stability Analysis