Nonlinear internal waves forced by tides near the critical latitude