Resonant vibrational excitation of the c 3Πu state in HD and D2 by electron impact