Interplanetary dust dynamics: I. Long-term gravitational effects of the inner planets on zodiacal dust