A unified dissipativity approach for stability analysis of piecewise smooth systems