Search for time-dependent CP violation in D0 → K+K– and D0 → π+π– decays