Implementation of the Critical Wave Groups Method with Computational Fluid Dynamics and Neural Networks