Wave transformation in the surf zone