Refraction statics for complex near-surface models