Piston temperature measurement method for high-speed gasoline engines