Tesla says battery-supply deal for Toyota RAV4 EV to end