Single-photon femtosecond detection by frequency mixing up-conversion optical gate