Mathematical modelling of nonlinear internal ring waves in three-layered fluids