Post-Newtonian effects of planetary gravity on the perihelion shift