Carrier-envelope phase control of femtosecond mode-locked lasers and direct optical frequency synthesis