High-order harmonic generation by atoms in a few-cycle laser pulse: Carrier-envelope phase and many-electron effects