Leptogenesis in smooth hybrid inflation