Exact performance evaluation of lightwave systems with optical preamplifier