Bootstrapping scattering amplitudes in N=4 super-Yang-mills theory