Raptors sign coach Nick Nurse to multiyear extension