Onboard chargers and electric cars