From the Hagedoorn imaging technique to Kirchhoff migration and inversion