Masimo CEO Joe Kiani resigns amid legal dispute with Apple