Carrier-envelope phase dependence of nonsequential double ionization of H2 by few-cycle laser pulses