Optimizing Cox Models with Stochastic Gradient Descent: Theoretical Foundations and Practical Guidances