Thickness-Weighted Mean Theory for the Effect of Surface Gravity Waves on Mean Flows in the Upper Ocean