Preconditioning Toeplitz-plus-diagonal linear systems using the Sherman-Morrison-Woodbury formula