Electromagnetic Loss Analysis of a Linear Motor System Designed for a Free-Piston Engine Generator