A numerical wave prediction model DOLPHIN: Theory and test results