Automakers in Japan have lagged behind their big rivals in electric vehicles and are trying to cut costs and make up for lost time