Mapping the potential energy surfaces for ring-closing metathesis reactions of prototypical dienes by electronic structure calculations.