Accurate performance evaluation of weakly coherent optical systems