CP violation in the lepton sector and implications for leptogenesis