Morse decompositions for piecewise constant vector fields