Text this: Reverse time migration and full waveform inversion in riemannian manifolds : application to rugged topography