Numerical modeling of a planing hull maneuvering in a regular wave, Part 1: Dynamic Instability, Part 2: Safety operation