PAM-4 Performance Optimization in Presence of Optical Amplification