Feedback linearisation in systems with non-smooth nonlinearities