Optimization of selective stimulation parameters for multi-contact electrodes