Analysis of the All-electrical Automatic Power Control of a Semiconductor Laser Amplifier