End-to-end Learning of Sparse Interventions on Activations to Steer Generation