Baryogenesis and neutrino masses