Optimal variable selection in multi-group sparse discriminant analysis