Affleck–Dine leptogenesis via right-handed sneutrino fields in a supersymmetric hybrid inflation model