Least-squares wave-equation migration/inversion