Likelihood as a Performance Gauge for Retrieval-Augmented Generation