Determining the carrier-envelope phase of relativistic laser pulses via electron-momentum distribution