Frege on Thinking and Its Epistemic Significance