A Preconditioning Framework for Sequences of Diagonally Modified Linear Systems Arising in Optimization