A complementarity approach for the computation of periodic oscillations in piecewise linear systems