Migration-velocity analysis using image-space generalized wavefields