Vehicle hybrid free-piston engine-generator