Feynman amplitudes on moduli spaces of graphs