Surface-wave inversion for a P-velocity profile with a constant depth gradient of the squared slowness