Poincaré-Andronov-Melnikov analysis for non-smooth systems. (2016)