Mercedes will be ready to be all-electric by 2030, the automaker said, although it stopped short of giving a hard deadline to stop selling fossil-fuel cars.