Numerical Optimization Techniques for Secure Communications Over MIMO Channels