Existence and uniqueness of solutions for a class of piecewise linear systems