Reverberation mapping by regularized linear inversion