An equivalence result between linear hybrid automata and piecewise affine systems