A Framework for Studying the Regularizing Properties of Krylov Subspace Methods