Zoox agrees to settle lawsuit with Tesla