A distorted wave calculation for electronic energy transfer in molecular collisions. Application to the N2(A 3Σu+)+CO(X 1Σ+) →N2(X 1Σg+) +CO(a 3Π) system