Carrier-envelope-offset phase control of ultrafast optical rectification in resonantly excited semiconductors.