charging battery of an electric vehicle