Development of free piston engine linear generator system and a resonant pendulum type control method