A Fuzzy Logic and Artificial Neural Network-Based Intelligent Controller for a Vehicle-to-Grid System