An atom interferometer for measuring horizontal accelerations