Securing Vehicle-to-Grid Communications in the Smart Grid