Neutrino oscillations in the early universe