Simultaneous measurement of spontaneous emission rate, nonlinear gain coefficient, and carrier lifetime in semiconductor lasers using a parasitic‐free optical modulation technique