Stability constraints for oceanic numerical models: implications for the formulation of time and space discretizations