Bubble nucleation and cooperativity in DNA melting