Direct CP asymmetry in D → π−π+ and D → K−K+ in QCD-based approach