Cavs waive shooting guard JR Smith after eventful tenure