Soliton perturbation theory for the generalized Benjamin–Bona–Mahoney equation