Numerical investigation of the breaking of ocean waves induced by modulational instability