Optical Amplification in Switching Networks