Vibrational excitation of H2(X1Σ+g, v)/D2(X1Σ+g, v) through excitation of electronically excited singlet states and radiative cascade