Comprehensive Design Method and Experimental Examination of an Electrical Machine for a Free-Piston Linear Generator