Quadratic discriminant analysis for high-dimensional data