A Linear Optical Sensor for Measuring Needle Displacement in Common-rail Diesel Injectors