The tilt of the fundamental plane of elliptical galaxies — I. Exploring dynamical and structural effects