Perturbative analysis in planetary gravitational lensing