Chern-Weil Techniques On Loop Spaces And The Maslov Index In Partial Differential Equations