Semi-analytical model for third-body perturbations including the inclination and eccentricity of the perturbing body