Measuring the phonon-assisted spectral function by using a nonequilibrium three-terminal single-molecular device