Estimation and removal of complex near surface effects in seismic measurements