Detection and Bulk Properties of the HR 8799 Planets with High-resolution Spectroscopy