Leptogenesis and the violation of lepton number and CP at low energies