Tesla rival Xpeng to use LiDAR, deviating from lawsuit of former employee