The effect of eccentricity and inclination on the motion near the Lagrangian points L4 and L5