Regularized Ritz approximations for Fredholm equations of the first kind