Tree-level amplitudes in N = 8 supergravity