Single-shot carrier-envelope phase measurement of few-cycle laser pulses