Direct measurement and analysis of the carrier-envelope phase in light pulses approaching the single-cycle regime