Accurate and efficient evaluation of the a posteriori error estimator in the reduced basis method