Error-rate performance of optical amplifiers