Complementarity and nonlocality in two-qudit systems