Uncertainty-aware performance assessment of optical imaging modalities with invertible neural networks