A compact high-speed high-sensitivity second-harmonic interferometer for electron density measurement