High-Speed Single-Photon Detection with Avalanche Photodiodes in the Near Infrared