Simultaneous diffraction of two finite waves at a nonuniform mixed dynamic transmission grating