Artificial Intelligence for Vehicle-to-Everything: A Survey