Hybrid Deterministic-Stochastic Methods for Data Fitting