Simplicity in the structure of QED and gravity amplitudes