The coupled electron-ion Monte Carlo method