Methods for the transfer of electrical energy or data between charging station and vehicle