U.S. and E.U. close to setting joint electric-car rules