A General Three-Dimensional Eddy-Resolving Model for Stratified Seas