A numerical nonlinear analysis of two-dimensional ventilating entry of surface-piercing hydrofoils with effects of gravity