Asymptotic analysis of the primitive equations under the small depth assumption