Gasdynamic modeling and parametric study of mesoscale internal combustion swing engine/generator systems